package chapterSystem.client.model.entities;

import chapterSystem.client.model.entitiesInt.Brother;

/**
 * User: Hasp
 * Date: 14.03.12
 * Time: 18:30
 */
public class BrotherEntity implements Brother {
    private int id = -1;
    private String name = "";
    private int unitId = 0;
    private int rankBattle = 0;
    private int rankWork = 0;
    private int points = 0;
    private String cookie;

    public BrotherEntity() {}

    public BrotherEntity(int id, int unitId, int rankBattle, String name, int rankWork, int points) {
        this.id = id;
        this.unitId = unitId;
        this.rankBattle = rankBattle;
        this.name = name;
        this.rankWork = rankWork;
        this.points = points;
    }


    public int getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public int getRankBattle() {
        return rankBattle;
    }

    public int getRankWork() {
        return rankWork;
    }

    public int getPoints() {
        return points;
    }

    @Override
    public int getUnitId() {
        return unitId;
    }

    @Override
    public void setCookie(String cookie) {
        this.cookie = cookie;
    }

    @Override
    public String getCookie() {
        return cookie;
    }

    @Override
    public String toString() {
        return "BrotherEntity{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", unitId=" + unitId +
                ", rankBattle=" + rankBattle +
                ", rankWork=" + rankWork +
                ", points=" + points +
                ", cookie='" + cookie + '\'' +
                '}';
    }
}
